package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

@Data
@TableName("tbl_nft_transfer")
@ApiModel(description = "NFT流转信息")
public class NftTransfer implements Serializable {
    private static final long serialVersionUID = 7873399361224973127L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer nftId;
    @ApiModelProperty(value = "流转hash")
    private String transactionHash;
    @ApiModelProperty(value = "tokenid")
    private BigInteger tokenId;
    @ApiModelProperty(value = "源地址")
    private String fromAddress;
    @ApiModelProperty(value = "目标地址")
    private String toAddress;
    @ApiModelProperty(value = "流转类型")
    private String transferType;
    @ApiModelProperty(value = "流转时间")
    private Date transferTime;
    @ApiModelProperty(value = "用户名")
    private String username;

    public NftTransfer(Integer nftId, String transactionHash, BigInteger tokenId, String fromAddress, String toAddress, String transferType, Date transferTime,String username) {
        this.nftId = nftId;
        this.transactionHash = transactionHash;
        this.tokenId = tokenId;
        this.fromAddress = fromAddress;
        this.toAddress = toAddress;
        this.transferType = transferType;
        this.transferTime = transferTime;
        this.username = username;
    }

    public NftTransfer() {
    }
}
